// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue';
import VueRouter from 'vue-router';
import App from './App';
import goods from './components/goods/goods';
import seller from './components/seller/seller';
import ratings from './components/ratings/ratings'

// Vue.config.productionTip = false

Vue.use(VueRouter);

const routes = [
  {path: '/goods', component: goods},
  {path: '/ratings', component:ratings},
  {path: '/seller', component: seller}


];


const router = new VueRouter({
  mode: 'history', //丢掉路由中得#
  linkActiveClass: 'active',  //全局配置默认激活类名
  routes

});

var vm = new Vue({
  el: '#app',
  router,
  render: h => h(App)
});
 
Vue.use({
  vm

});
/* eslint-disable no-new */
// new Vue({
//   el: '#app',
//   components: { App },
//   template: '<App/>'
// })
